//
//  TestTableViewCell.m
//  CodeExamples
//
//  Created by letian on 16/12/7.
//  Copyright © 2016年 cmsg. All rights reserved.
//

#import "TestTableViewCell.h"
#import "FriendCircleCommentView.h"
#import "FriendCircleModel.h"


@interface TestTableViewCell ()
/** <#des#> */
@property (nonatomic,strong) FriendCircleCommentView * commentView;
@end

@implementation TestTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _commentView = [FriendCircleCommentView new];
        [self.contentView addSubview:_commentView];
    }
    
    return self;
}

- (void)cellDataWithModle:(FriendCircleModel *)model
{
    [_commentView mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(10);
        make.right.equalTo(self.contentView).offset(-10);
        make.top.equalTo(self.contentView).offset(10);
        make.bottom.equalTo(self.contentView.mas_bottom).offset(-10);
    }];
    [_commentView viewDataWithLikeItemsArray:model.likeDatas commentItemsArray:model.commentDatas];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


@end
